﻿namespace CSharpPro._1023;

public class Student
{
          //声明字段
          public int id;
          public string name;
          public string sex;
          public int age;
 
          public void ShowInfo()
          {
              Console.WriteLine($"学号：{id}");
              Console.WriteLine($"姓名：{name}");
              Console.WriteLine($"性别：{sex}");
              Console.WriteLine($"年龄：{age}");
          }

     
}